public IHttpActionResult Update(Watches watch) { var isupdate = _watchRepository.Update(watch); if (isupdate == true) { return(Ok(isupdate)); } return(BadRequest()); }
public void UpdateWatch(Models.Watch watch) { watchRepository.Update(watch); unitOfWork.Commit(); }