public Stream GetBranchbyID(Core.Model.mdlBranchParam param) { string json = Core.Services.RestPublisher.Serialize(BranchFacade.LoadBranchByID2(param.BranchID)); WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8"; MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json)); return(ms); }
public Stream GetBranch() { string json = Core.Services.RestPublisher.Serialize(BranchFacade.GetBranch()); WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8"; MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json)); return(ms); }
public Stream GenerateBranchID() { var listMenu = BranchFacade.GenerateBranchId(); var result = new Core.Model.mdlLoginMenu(); var mdlResult = new Core.Model.mdlResultSvc(); mdlResult.Title = "GenereateID"; mdlResult.StatusCode = "01"; mdlResult.StatusMessage = ""; mdlResult.Value = listMenu; string json = Core.Services.RestPublisher.Serialize(mdlResult); WebOperationContext.Current.OutgoingResponse.ContentType = "application/json; charset=utf-8"; MemoryStream ms = new MemoryStream(Encoding.UTF8.GetBytes(json)); return(ms); }
public Core.Model.mdlResultSvc UploadBranch(Core.Model.mdlBranch BranchPrm) { return(BranchFacade.UploadBranch(BranchPrm)); }
public Core.Model.mdlResultSvc DeleteBranch(Core.Model.mdlBranch param) { return(BranchFacade.DeleteBranch2(param.BranchID)); }
public InsertOrUpdateBranchResponse InsertOrUpdateBranch(InsertOrUpdateBranchRequest request) { IBranchFacade facade = new BranchFacade(); return(facade.InsertOrUpdateBranch(request)); }
public UpdateBranchCalendarResponse UpdateBranchCalendar(UpdateBranchCalendarRequest request) { IBranchFacade facade = new BranchFacade(); return(facade.UpdateBranchCalendar(request)); }