Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }
Пример #4
0
 public Core.Model.mdlResultSvc UploadBranch(Core.Model.mdlBranch BranchPrm)
 {
     return(BranchFacade.UploadBranch(BranchPrm));
 }
Пример #5
0
 public Core.Model.mdlResultSvc DeleteBranch(Core.Model.mdlBranch param)
 {
     return(BranchFacade.DeleteBranch2(param.BranchID));
 }
Пример #6
0
        public InsertOrUpdateBranchResponse InsertOrUpdateBranch(InsertOrUpdateBranchRequest request)
        {
            IBranchFacade facade = new BranchFacade();

            return(facade.InsertOrUpdateBranch(request));
        }
Пример #7
0
        public UpdateBranchCalendarResponse UpdateBranchCalendar(UpdateBranchCalendarRequest request)
        {
            IBranchFacade facade = new BranchFacade();

            return(facade.UpdateBranchCalendar(request));
        }