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

            if (isupdate == true)
            {
                return(Ok(isupdate));
            }
            return(BadRequest());
        }
コード例 #2
0
ファイル: WatchBusiness.cs プロジェクト: ahmadshafiei/Watch
 public void UpdateWatch(Models.Watch watch)
 {
     watchRepository.Update(watch);
     unitOfWork.Commit();
 }