/// <summary>
        /// Adds the update.
        /// </summary>
        /// <param name="reportLinkDatadto">The report link  dto.</param>
        /// <returns>Newly added object</returns>
        private IHttpActionResult AddUpdate(TblReportExecutionLinkDataDto reportLinkDatadto)
        {
            var result = new ResultMessage <TblReportExecutionLinkDataDto>();

            try
            {
                result = this.reportLinkDataService.AddOrUpdate(reportLinkDatadto, 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] TblReportExecutionLinkDataDto reportLinkDatadto, long reportLinkId)
 {
     reportLinkDatadto.Id = reportLinkId;
     return(this.AddUpdate(reportLinkDatadto));
 }
 public IHttpActionResult Add([FromBody] TblReportExecutionLinkDataDto reportLinkDatadto)
 {
     return(this.AddUpdate(reportLinkDatadto));
 }