public void CabinetUserService_Get()
        {
            CabinetUser u = userService.Get(1);

            Assert.AreEqual(u.Id, listUser[0].Id);
            Assert.AreEqual(u.Email, listUser[0].Email);
        }
Beispiel #2
0
 public IHttpActionResult Get()
 {
     return(execute(delegate()
     {
         long userId = User.Identity.GetUserId <long>();
         CabinetUser user = userService.Get(userId);
         if (user.Employee != null)
         {
             user.Employee.User = null;
         }
         result = Json(new { success = true, data = user });
     }));
 }