Exemplo n.º 1
0
        public County Add(County county)
        {
            var newEmployee = _countyRepository.Add(county);

            _unitOfWork.Commit();
            return(newEmployee);
        }
Exemplo n.º 2
0
 /// <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);
 }