public MyResult <object> GetOneScenic(int id) { ScenicDto model = new ScenicDto { Id = id }; return(SetingService.GetOneScenic(model)); }
public MyResult <object> AnnounceAdd_Update([FromBody] AnnounceDto model) { if (!string.IsNullOrEmpty(model.Id.ToString()) && model.Id > 0) { return(SetingService.UpdateAnnounce(model)); } return(SetingService.AddAnnounce(model)); }
public MyResult <object> BannerAdd_Updata([FromBody] BannerDto model) { if (!string.IsNullOrEmpty(model.Pic) && model.Pic.Length > 1000) { var fileName = DateTime.Now.GetTicket().ToString(); model.Pic = ImageHandlerUtil.SaveBase64Image(model.Pic, $"{fileName}.png", Constants.BANNER_PATH); } return(SetingService.AddBanner(model)); }
public MyResult <object> SaveMessageType([FromBody] MessageTypeDto model) { if (!string.IsNullOrEmpty(model.Pic) && model.Pic.Length > 1000) { var fileName = DateTime.Now.GetTicket().ToString(); model.Pic = ImageHandlerUtil.SaveBase64Image(model.Pic, $"{fileName}.png", Constants.MessageType_PATH); } if (model.Id.HasValue) { return(SetingService.UpdateMessageType(model)); } return(SetingService.AddMessageType(model)); }
public MyResult <object> DelMessageType([FromBody] MessageTypeDto model) { return(SetingService.DelMessageType(model)); }
public MyResult <object> DelScenic([FromBody] ScenicDto model) { return(SetingService.DelScenic(model)); }
public MyResult <object> ScenicList([FromBody] ScenicDto model) { return(SetingService.GetScenic(model)); }
public MyResult <object> DelBannerPic([FromBody] BannerDto model) { return(SetingService.DelBanner(model.Id)); }
public MyResult <object> BannerManagerList([FromBody] BannerDto model) { return(SetingService.GetBanner(model)); }
public MyResult <object> GetAnnounceTitle() { return(SetingService.GetAnnounceTitle()); }
public MyResult <object> GetOneAnnounce(int id) { return(SetingService.GetOneAnnounce(id)); }
public MyResult <object> UpdateAnnounce([FromBody] AnnounceDto model) { return(SetingService.UpdateAnnounce(model)); }
public MyResult <object> DelAnnounce(int id) { return(SetingService.DelAnnounce(id)); }
public MyResult <object> GetAnnounces([FromBody] AnnounceDto model) { return(SetingService.GetAnnounces(model)); }