public void updateQMInfo(string intId, string comments, string conditionText) { intUpdate.InterventionId = Convert.ToInt32(intId); intUpdate.Condition = Convert.ToInt32(conditionText); intUpdate.ModifyDate = DateTime.Now; intUpdate.UserId = Utils.getInstance.GetCurrentUserId(); intUpdate.InterventionComments = comments; intUpdateRepository = new InterventionUpdateRepository(context); validateUser(); validateCondition(); validatePreviousUpdate(); intUpdateRepository.Insert(intUpdate); }
public IList <InterventionUpdate> GetAllPreviousUpdates(string intId) { intUpdateRepository = new InterventionUpdateRepository(context); return(intUpdateRepository.GetAllInterventionUpdateWithInterventionId(Convert.ToInt32(intId))); }