Esempio n. 1
0
        public object Post(FB_Data request)
        {
            ApiUser hdUser = request.ApiUser;

            try
            {
                FBModel.UpdateData(hdUser, request.user_id, request.fb_staff_id, request.account_id, request.fb_client_id,
                                   request.project_id, request.fb_project_id, request.task_type_id, request.fb_task_type_id);
            }
            catch (Exception ex)
            {
                throw new HttpError(ex.Message.Replace("\n", " ").Replace("\r", " "));
            }
            return(new HttpResult("", HttpStatusCode.OK));
        }
Esempio n. 2
0
 public object Post(FB_Data request)
 {
     ApiUser hdUser = request.ApiUser;
     try
     {
         FBModel.UpdateData(hdUser, request.user_id, request.fb_staff_id, request.account_id, request.fb_client_id,
             request.project_id, request.fb_project_id, request.task_type_id, request.fb_task_type_id);
     }
     catch (Exception ex)
     {
         throw new HttpError(ex.Message.Replace("\n", " ").Replace("\r", " "));
     }
     return new HttpResult("", HttpStatusCode.OK);
 }