public ResponseModel sendReportAsEmail(int id, reportsendPayload data) { ResponseModel response = new ResponseModel(); Utilities.SendEmail(data.email, "Report" + DateTime.Now.ToShortDateString(), data.body.Replace(@"_ngcontent-c9=""", "").Replace(@"_ngcontent-c6=""", "")); return(response); }
public async Task <ResponseModel> sendReportAsemail([FromBody] reportsendPayload data) { var result = _appontmentService.sendReportAsEmail(1, data); return(await Task.FromResult(result)); }