public async Task <IActionResult> DeleteAsync(int Id)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState.GetErrorMessage()));
            }

            else
            {
                IResult result = await _service.DeleteByIdAsync(Id);

                if (result.Success)
                {
                    return(Ok(result.Message));
                }

                return(BadRequest(result.Message));
            }
        }