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 }); })); }
public IHttpActionResult AddTO(RequestObjectTODTO dto) { return(execute(delegate() { long userId = User.Identity.GetUserId <long>(); employeeObjectService.AddTO(userId, dto); result = Json(new { success = true }); })); }