public County Add(County county) { var newEmployee = _countyRepository.Add(county); _unitOfWork.Commit(); return(newEmployee); }
/// <summary> /// Add a county /// </summary> /// <param name="county"></param> public void Add(County county) { county.CreatedUserID = System.Web.HttpContext.Current.User.Identity.Name; county.CreatedDate = DateTime.Now; _countyRepository.Add(county); }