forked from MDCPS/DamageAssessment_Backend
		
	updated latest changes from dev
This commit is contained in:
		| @ -22,7 +22,7 @@ namespace DamageAssesment.Api.Attachments.Controllers | ||||
|         /// Get all attachments. | ||||
|         /// </summary> | ||||
|  | ||||
|         [HttpGet("Attachments")] | ||||
|         [HttpGet("attachments")] | ||||
|         public async Task<ActionResult> GetAttachmentsAsync() | ||||
|         { | ||||
|  | ||||
| @ -37,7 +37,7 @@ namespace DamageAssesment.Api.Attachments.Controllers | ||||
|         /// <summary> | ||||
|         /// Get all attachments by attachmentId. | ||||
|         /// </summary> | ||||
|         [HttpGet("Attachments/{id}")] | ||||
|         [HttpGet("attachments/{id}")] | ||||
|         public async Task<ActionResult> GetAttachmentbyIdAsync(int id) | ||||
|         { | ||||
|  | ||||
| @ -81,7 +81,7 @@ namespace DamageAssesment.Api.Attachments.Controllers | ||||
|         /// Save new Attachment(s) | ||||
|         /// </summary> | ||||
|  | ||||
|         [HttpPost("Attachments"), DisableRequestSizeLimit] | ||||
|         [HttpPost("attachments"), DisableRequestSizeLimit] | ||||
|         public async Task<IActionResult> UploadAttachmentAsync(AttachmentInfo attachmentInfo) | ||||
|         { | ||||
|             try | ||||
| @ -108,7 +108,7 @@ namespace DamageAssesment.Api.Attachments.Controllers | ||||
|         /// Modify an new attachment. | ||||
|         /// </summary> | ||||
|  | ||||
|         [HttpPut("Attachments"), DisableRequestSizeLimit] | ||||
|         [HttpPut("attachments"), DisableRequestSizeLimit] | ||||
|         public async Task<IActionResult> UpdateAttachmentAsync(AttachmentInfo attachmentInfo) | ||||
|         { | ||||
|             try | ||||
| @ -138,7 +138,7 @@ namespace DamageAssesment.Api.Attachments.Controllers | ||||
|         /// <summary> | ||||
|         /// Delete an existing attachment. | ||||
|         /// </summary> | ||||
|         [HttpDelete("Attachments/{id}")] | ||||
|         [HttpDelete("attachments/{id}")] | ||||
|         public async Task<IActionResult> DeleteAttachment(int id) | ||||
|         { | ||||
|             // database soft delete | ||||
|  | ||||
| @ -3,6 +3,7 @@ using System.ComponentModel.DataAnnotations.Schema; | ||||
|  | ||||
| namespace DamageAssesment.Api.Attachments.Db | ||||
| { | ||||
|     [Table("AnswerAttachments")] | ||||
|     public class Attachment | ||||
|     { | ||||
|         [Key] | ||||
|  | ||||
| @ -21,7 +21,7 @@ namespace DamageAssesment.Api.Attachments.Providers | ||||
|             this.logger = logger; | ||||
|             this.mapper = mapper; | ||||
|             this.uploadservice = uploadservice; | ||||
|             //SeedData(); | ||||
|             SeedData(); | ||||
|         } | ||||
|         public async Task<(bool IsSuccess, IEnumerable<Models.Attachment> Attachments, string ErrorMessage)> GetAttachmentsAsync() | ||||
|         { | ||||
|  | ||||
| @ -1,8 +0,0 @@ | ||||
| { | ||||
|   "Logging": { | ||||
|     "LogLevel": { | ||||
|       "Default": "Information", | ||||
|       "Microsoft.AspNetCore": "Warning" | ||||
|     } | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user