public JsonResult listcustomer(TblAssetCustomer CustomerInfo) { var result = SetupUnitOfWork.Customer.GetAll(); return(Json(result)); }
public JsonResult DeleteCustomer(TblAssetCustomer CustomerInfo) { SetupUnitOfWork.Customer.Delete(CustomerInfo); SetupUnitOfWork.Commit(); return(Json(CustomerInfo.CustomerId)); }