daily pastebin goal
46%
SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if (ModelState.IsValid)
  2.             {
  3.                 IdentityUser user = await _userManager.FindByIdAsync(User.FindFirst(ClaimTypes.NameIdentifier).Value);
  4.  
  5.                 Logica.BL.Tenants tenants = new Logica.BL.Tenants();
  6.                 var tenant = tenants.GetTenants(user.Id).FirstOrDefault();
  7.  
  8.                 Logica.BL.Projects projects = new Logica.BL.Projects();
  9.                 projects.CreateProjects(model.Title,
  10.                     model.Details,
  11.                     model.ExpectedCompletionDate,
  12.                     tenant.Id);
  13.  
  14.                 return RedirectToAction("Index");
  15.             }
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