public object CreateUser(Registration reg) { var master = new EmployeemasterViewModel(); if (master.UserId == 0) { return(_loginManager.AddUserBAL(master, reg)); } else { return(new Response { Status = "Error", Message = "Invalid Data." }); } }