daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  [HttpPost]
  2.         public async Task<IActionResult> Create(Logica.Models.BindingModel.ProjectsCreateBindingModel model)
  3.         {
  4.             if (ModelState.IsValid)
  5.             {
  6.                 IdentityUser user = await _userManager.FindByIdAsync(User.FindFirst(ClaimTypes.NameIdentifier).Value);
  7.  
  8.                 Logica.BL.Tenants tenants = new Logica.BL.Tenants();
  9.                 var tenant = tenants.GetTenants(user.Id).FirstOrDefault();
  10.  
  11.                 Logica.BL.Projects projects = new Logica.BL.Projects();
  12.                 projects.CreateProject(model.Title,
  13.                     model.Details,
  14.                     model.ExpectedCompletionDate,
  15.                     tenant.Id);
  16.  
  17.                 return RedirectToAction("Index");
  18.             }
  19.  
  20.             return View();
  21.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top