internal int CloseCase(int id, decimal totalPrice, DateTime endDate) { CaseM c = new CaseM(); c.Id = id; c.TotalPrice = totalPrice; c.EndDate = endDate; return(_dbCase.CloseCase(c)); }