/// <summary> /// Adds the update. /// </summary> /// <param name="suiteTestDto">The suite test dto.</param> /// <returns> /// Newly added object /// </returns> private IHttpActionResult AddUpdate(TblLnkSuiteTestDto suiteTestDto) { var result = new ResultMessage <TblLnkSuiteTestDto>(); try { result = this.suiteTestMapService.SaveOrUpdate(suiteTestDto, this.UserId); } catch (Exception ex) { this.LoggerService.LogException(ex); result.Messages.Add(new Message(null, ex.Message)); } return(this.CreateCustomResponse(result)); }
public IHttpActionResult Update([FromBody] TblLnkSuiteTestDto suiteTestDto, long id) { suiteTestDto.Id = id; return(this.AddUpdate(suiteTestDto)); }
public IHttpActionResult Add([FromBody] TblLnkSuiteTestDto suiteTestDto) { return(this.AddUpdate(suiteTestDto)); }