Exemple #1
0
 public IHttpActionResult AddIS(RequestObjectISParameter param)
 {
     return(execute(delegate()
     {
         employeeObjectService.AddIS(param.EmployeeId, param.RequestObjectIS);
         RequestObjectDTO requestObject = objectService.Get(param.RequestObjectIS.Id);
         result = Json(new { success = true, requestObject = requestObject });
     }));
 }
Exemple #2
0
        public IHttpActionResult AddIS(RequestObjectISDTO dto)
        {
            return(execute(delegate()
            {
                long userId = User.Identity.GetUserId <long>();
                employeeObjectService.AddIS(userId, dto);

                result = Json(new { success = true });
            }));
        }