Use model validation. You can define a ViewModel and use DataAnnotations to mark property A as [Required]. Then in your action just check if ModelState.IsValid. You can also easily do this using an action filter as shown in this article:
https://msdn.microsoft.com/en-us/magazine/mt767699.aspx