示例#1
0
 public IHttpActionResult AddTO(RequestObjectTOParameter param)
 {
     return(execute(delegate()
     {
         employeeObjectService.AddTO(param.EmployeeId, param.RequestObjectTO);
         RequestObjectDTO requestObject = objectService.Get(param.RequestObjectTO.Id);
         result = Json(new { success = true, requestObject = requestObject });
     }));
 }
示例#2
0
        public IHttpActionResult AddTO(RequestObjectTODTO dto)
        {
            return(execute(delegate()
            {
                long userId = User.Identity.GetUserId <long>();
                employeeObjectService.AddTO(userId, dto);

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