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)); } }
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)); } }