public OperationResult Insert(SALES_FAVFOLDERModel model) { var entity = new SALES_FAVFOLDER { ID = model.ID, FolderName = model.FolderName, CustomerID = model.CustomerID, ContactID = model.ContactID, Creator = model.Creator, Modifier = model.Modifier, CreateDate = model.CreateDate, ModiDate = model.ModiDate, Status = model.Status, }; SALES_FAVFOLDERRepository.Insert(entity); return(new OperationResult(OperationResultType.Success, "Added successfully")); }
public int Update(SALES_FAVFOLDER model) { return(SALES_FAVFOLDERRepository.Update(model)); }