示例#1
0
        public IHttpActionResult Update(Watches watch)
        {
            var isupdate = _watchRepository.Update(watch);

            if (isupdate == true)
            {
                return(Ok(isupdate));
            }
            return(BadRequest());
        }
示例#2
0
 public void UpdateWatch(Models.Watch watch)
 {
     watchRepository.Update(watch);
     unitOfWork.Commit();
 }