Exemplo n.º 1
0
        public async Task <ActionResult> DeleteAsync(string id)
        {
            try
            {
                if (id == null)
                {
                    return(BadRequest());
                }
                await patientManager.DeleteAsync(id);

                return(new OkResult());
            }
            catch (Exception ex)
            {
                //Log(ex.Message);
                return(new BadRequestResult());
            }
        }