Example #1
0
        public async Task <ActionResult> DeleteClient(Guid clientId)
        {
            var message = string.Empty;

            try
            {
                await service.DeleteClient(clientId, GetUserId(), GetUsername());

                return(Json(new { success = true, message = "Client is successfully deleted." }));
            }
            catch (Exception e)
            {
                return(Json(new { success = false, message = "Something went wrong. Contact your administrator." }));
            }
        }