public async Task <IActionResult> Delete(string guid) { if (String.IsNullOrEmpty(guid)) { return(BadRequest()); } var result = await _repo.Delete(guid); if (result) { return(Ok("Record deleted succesfully.")); } return(StatusCode(500, "Something went wrong. Try again later")); }