예제 #1
0
 public IHttpActionResult UpdatePage(Core.Entities.Model.FBPage data)
 {
     try
     {
         data.UserId = CurrentUserId;
         _uow.FBPage.IU(data, "config");
         return(Ok());
     }
     catch (BusinessException ex)
     {
         return(BadRequest(ex.Message));
     }
     catch (Exception ex)
     {
         return(BadRequest(this.General_Err));
     }
 }
예제 #2
0
 public IHttpActionResult AddPage(Core.Entities.Model.FBPage data)
 {
     try
     {
         data.ThemeColor = "#0084ff";
         data.UserId     = CurrentUserId;
         _uow.FBPage.IU(data, "token");
         return(Ok());
     }
     catch (BusinessException ex)
     {
         return(BadRequest(ex.Message));
     }
     catch (Exception ex)
     {
         return(BadRequest(this.General_Err));
     }
 }