public static GetByIdResponse <BranchDto> GetById(int id)
 {
     return(Proxy.PerformRemote <IBranchService, GetByIdResponse <BranchDto> >(x =>
                                                                               x.GetById(new GetByIdRequest <BranchDto>(id, UserOperations.GetRequestBaseFromSession()))));
 }
 public static UpdateResponse <BranchDto> Update(BranchDto branch)
 {
     return(Proxy.PerformRemote <IBranchService, UpdateResponse <BranchDto> >(x =>
                                                                              x.Update(new UpdateRequest <BranchDto>(branch.Id, branch, UserOperations.GetRequestBaseFromSession()))));
 }
 public static DeleteResponse <BranchDto> Delete(BranchDto branch)
 {
     return(Proxy.PerformRemote <IBranchService, DeleteResponse <BranchDto> >(x =>
                                                                              x.Delete(new DeleteRequest <BranchDto>(branch, UserOperations.GetRequestBaseFromSession()))));
 }
 public static GetAllResponse <BranchDto> GetAll()
 {
     return(Proxy.PerformRemote <IBranchService, GetAllResponse <BranchDto> >(x =>
                                                                              x.GetAll(new GetAllRequest(UserOperations.GetRequestBaseFromSession()))));
 }
 public static List <ProductDto> GetAllByStoreId(int idBranch)
 {
     return(Proxy.PerformRemote <IProductService, List <ProductDto> >(x =>
                                                                      x.GetAllByStoreId(idBranch, UserOperations.GetRequestBaseFromSession())));
 }
 public static ResponseBase AssignAProductToAStore(int branchId, int productId)
 {
     return(Proxy.PerformRemote <IProductService, ResponseBase>(x =>
                                                                x.AssignAProductToAStore(branchId, productId, UserOperations.GetRequestBaseFromSession())));
 }
 public static DeleteResponse <ProductDto> Delete(ProductDto product)
 {
     return(Proxy.PerformRemote <IProductService, DeleteResponse <ProductDto> >(x =>
                                                                                x.Delete(new DeleteRequest <ProductDto>(product, UserOperations.GetRequestBaseFromSession()))));
 }
 public static UpdateResponse <ProductDto> Update(ProductDto product)
 {
     return(Proxy.PerformRemote <IProductService, UpdateResponse <ProductDto> >(x =>
                                                                                x.Update(new UpdateRequest <ProductDto>(product.Id, product, UserOperations.GetRequestBaseFromSession()))));
 }