public static async Task <Response> InsertVitals(VMVitals vitals)
        {
            Response response = new Response();
            await Task.Run(() =>
            {
                try
                {
                    using (var db = new krakenDBContext())
                    {
                        db.Vitals.Add(new Vitals()
                        {
                            Tempreture     = vitals.Tempreture,
                            HeartRate      = vitals.HeartRate,
                            OrganizationId = vitals.OrganizationId,
                            DeviceId       = vitals.DeviceId,
                            BusinessUnitId = vitals.BusinessUnitId
                        });
                        db.SaveChanges();
                        response = new Response()
                        {
                            IsSuccess = true,
                            Message   = "Succesfully inserted"
                        };
                    }
                }
                catch (Exception ex)
                {
                    response = new Response()
                    {
                        IsSuccess = false,
                        Message   = "Insertion Failed"
                    };
                    throw;
                }
            });

            return(response);
        }
        public async Task <Response> RegisterUser(VMRegisterUser user)
        {
            Response response = null;
            await Task.Run(() =>
            {
                try
                {
                    using (var db = new krakenDBContext())
                    {
                        db.User.Add(new User()
                        {
                            Name        = user.Name,
                            Email       = user.Email,
                            Password    = user.Password,
                            CreatedDate = DateTime.Now.ToString()
                        });
                        db.SaveChanges();
                        response = new Response()
                        {
                            IsSuccess = true,
                            Message   = "Operation Succesfull"
                        };
                    }
                }
                catch (Exception ex)
                {
                    response = new Response()
                    {
                        IsSuccess = false,
                        Message   = $"Exception occured {ex}"
                    };
                    throw;
                }
            });

            return(response);
        }