public async Task <IActionResult> AddResource(ResourceDTO resource)
        {
            var output = await _service.AddResourceAsync(resource);

            if (output.IsErrorOccured == true)
            {
                return(BadRequest(output));
            }
            else
            {
                return(Ok(output));
            }
        }
 // Create Resources
 public async Task <ISingleResponse <ResourceModel> > AddResourceAsync(ResourceModel details)
 {
     return(await _resourceService.AddResourceAsync(details));
 }