public async Task <IActionResult> Post(EntityModel model) { var service = new EntityRepositoryService(connString); await service.CreateEntity(model.Name, model.Description, model.EntityTypeId); var response = new GenericResponse <string>() { IsSuccess = true, Message = "Entity Created successfully.", ResponseCode = 200, Result = "Success" }; return(Ok(response)); }